﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using HiStaff.Domain.CO;
using HiStaff.Dal;

namespace HiStaff.Service
{
    public class Time : ITime
    {
        public List<CO_SIGN_LST> GetAllSignList()
        {
            return OracleHelper.ExcuteSelectMultiObject<CO_SIGN_LST>("APRS_CO_SIGN_LST");
        }
        public List<CO_FML> GetFormular()
        {
            return OracleHelper.ExcuteSelectMultiObject<CO_FML>("APRS_CO_FML");
        }
        public List<CO_FML_DETAIL> GetFormularForCal(CO_SUM_SEARCH arg)
        {
            return OracleHelper.ExcuteSelectMultiObject<CO_FML_DETAIL>("PKG_CALCOLEX", "PRS_FORMULAR", arg);
        }
        public List<CO_FML_DETAIL> GetFormularDetail(decimal? fmlID)
        {
            return OracleHelper.ExcuteSelectMultiObject<CO_FML_DETAIL>("APRS_CO_FML_DETAIL", new CO_FML_DETAIL
            {
                FMLID = fmlID
            });
        }
    }
}
